package game.gameobject.world;

import com.jme3.bullet.control.RigidBodyControl;
import com.jme3.material.Material;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;

public class CeilingTile extends Geometry {
    protected Box shape;
    public static final float X_EXTENT = 0.75f, Y_EXTENT = 0.075f, Z_EXTENT = 0.75f;

    public CeilingTile(Material material) {
	super("ceilingTile");
	createMesh();
	setMaterial(material);
    }

    private void createMesh() {
	shape = new Box(X_EXTENT, Y_EXTENT, Z_EXTENT);
	setMesh(shape);
    }

    public void createPhysicsControl() {
	RigidBodyControl control = new RigidBodyControl(0f);
        this.addControl(control);
    }
}
